/**
 * 根据 type 获取 tag
 * @param {*} tag
 */
export function getElementTag (tag) {
  const tags = {
    "pagination": "el-pagination",
    "dialog": "el-dialog",
    "autocomplete": "el-autocomplete",
    "dropdown": "el-dropdown",
    "dropdown-menu": "el-dropdown-menu",
    "dropdown-item": "el-dropdown-item",
    "menu": "el-menu",
    "submenu": "el-submenu",
    "menu-item": "el-menu-item",
    "menu-item-group": "el-menu-item-group",
    "input": "el-input",
    "input-number": "el-input-number",
    "radio": "el-radio",
    "radio-group": "el-radio-group",
    "radio-button": "el-radio-button",
    "checkbox": "el-checkbox",
    "checkbox-button": "el-checkbox-button",
    "checkbox-group": "el-checkbox-group",
    "switch": "el-switch",
    "select": "el-select",
    "option": "el-option",
    "option-group": "el-option-group",
    "button": "el-button",
    "button-group": "el-button-group",
    "table": "el-table",
    "table-column": "el-table-column",
    "date-picker": "el-date-picker",
    "time-select": "el-time-select",
    "time-picker": "el-time-picker",
    "popover": "el-popover",
    "tooltip": "el-tooltip",
    "message-box": "el-message-box",
    "breadcrumb": "el-breadcrumb",
    "breadcrumb-item": "el-breadcrumb-item",
    "form": "el-form",
    "form-item": "el-form-item",
    "tabs": "el-tabs",
    "tab-pane": "el-tab-pane",
    "tag": "el-tag",
    "tree": "el-tree",
    "alert": "el-alert",
    "notification": "el-notification",
    "slider": "el-slider",
    "loading": "el-loading",
    "icon": "el-icon",
    "row": "el-row",
    "col": "el-col",
    "upload": "el-upload",
    "progress": "el-progress",
    "spinner": "el-spinner",
    "message": "el-message",
    "badge": "el-badge",
    "card": "el-card",
    "rate": "el-rate",
    "steps": "el-steps",
    "step": "el-step",
    "carousel": "el-carousel",
    "scrollbar": "el-scrollbar",
    "carousel-item": "el-carousel-item",
    "collapse": "el-collapse",
    "collapse-item": "el-collapse-item",
    "cascader": "el-cascader",
    "color-picker": "el-color-picker",
    "transfer": "el-transfer",
    "container": "el-container",
    "header": "el-header",
    "aside": "el-aside",
    "main": "el-main",
    "footer": "el-footer",
    "timeline": "el-timeline",
    "timeline-item": "el-timeline-item",
    "link": "el-link",
    "divider": "el-divider",
    "image": "el-image",
    "calendar": "el-calendar",
    "backtop": "el-backtop",
    "infinite-scroll": "el-infinite-scroll",
    "page-header": "el-page-header",
    "cascader-panel": "el-cascader-panel",
    "avatar": "el-avatar",
    "drawer": "el-drawer",
    "popconfirm": "el-popconfirm"
  }
  return tags[tag]
}
